<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css">
    <link rel="stylesheet" href="__STATIC__/layui/css/view.css"/>
    <link rel="icon" href="/favicon.ico">
</head>
<body>
<h1>课程管理</h1>
<div class="layui-row">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="form-box">
                <div class="layui-form layui-form-item">
                    <form method="post" action="kscx" class="layui-form">
                        <div class="layui-inline">

                            <div class="layui-form-mid">课时名:</div>
                            <div class="layui-input-inline" style="width: 100px;">
                                <input name="ksname" type="text" autocomplete="off" class="layui-input">
                            </div>

                            <button type="submit" class="layui-btn layui-btn-blue">查询</button>

                        </div>
                        <form/>
                </div>
                <a class="layui-btn layui-btn-blue" href="ksadd"><i class="layui-icon">&#xe654;</i>新增</a>
                <table id="demo"></table>
            </div>
        </div>
    </div>
    <div>
    <table class="layui-table">

        <thead>
        <tr>
            <th>ID</th>
            <th>课时名</th>
            <th>所属课程</th>
            <th>课时视频</th>
            <th>操作</th>


        </tr>
        </thead>
        <tbody>
        {volist name="ksb" id="ksb"}
        <tr>
            <td>{$ksb.no}</td>
            <td>{$ksb.ksname}</td>
            <td>{$ksb.kcb.name}</td>
            <td>{$ksb.href}</td>



            <td>
                <a href="{:url('houtai/ksedit',['no'=>$ksb.no])}" class="layui-btn layui-btn-sm">编辑</a>
                <a href="{:url('houtai/ksdel',['no'=>$ksb.no])}" class="layui-btn layui-btn-danger layui-btn-sm">删除</a>
            </td>
        </tr>
        {/volist}
        </tbody>


    </table>

    </div>

</body>
</html>